package cn.lc.taotao.controller;

import cn.lc.taotao.pojo.EasyUIDataGridResult;
import cn.lc.taotao.service.ItemService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created with IntelliJ IDEA.
 * User: luochao
 * Date: 2017/11/21 0021
 * Time: 下午 3:21
 */
@Controller
public class PageController {

    /**
     * 跳转后台主页
     * @return
     */
    @RequestMapping("/")
    public String showIndex(){
        return "index";
    }

    @RequestMapping("/{page}")
    public String showPage(@PathVariable String page){
        return  page;
    }


}
